package com.ai.module.user.service;

import com.ai.module.chat.common.domain.vo.chat.ChatContent;
import com.ai.module.chat.common.enu.AliFileSource;
import com.ai.module.user.domain.entity.UserRobotEntity;
import com.ai.module.user.domain.req.UserRobotReq;
import com.ai.module.user.domain.vo.UserRobotVo;
import com.ai.common.BaseResp;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserRobotService extends IService<UserRobotEntity> {
    List<UserRobotEntity> history(String userName);

    boolean updateRobot(UserRobotReq robotReq);

    IPage<ChatContent> chatInfoList(UserRobotReq sessionId);

    String create(UserRobotReq robotReq);

    List<UserRobotVo> findALL();

    /**
     * 用户背景上传
     *
     * @param file
     * @param robotId
     * @param imageSource
     * @return
     */
    BaseResp<String> uploadImage(MultipartFile file, String robotId, AliFileSource imageSource);

    UserRobotVo findByRobotId(String robotId);

    void deleteRobot(UserRobotReq req);

    UserRobotVo findDefaultRobot(UserRobotReq userRobotReq);


    List<UserRobotEntity> findSessions();


}
